<?php
namespace Home\Controller;
use Think\Controller;


class AbufbildungController extends Controller{


###################################### 页面出错 ########################
    function inquireabufb($userid){
    	 //查询哪个买家已同意我的报价，
		$abufb=M("Abufbildung");

		//$userid=$_POST["userid"];

		$result=$abufb
		->field("t_needlist.needlist_goodsname,t_needlist.needlist_number,t_needlist.needlist_time,t_needlist.needlist_desc") 
	        ->join("t_needlist on t_abufbildung.needlist_id=t_needlist.needlist_id")
	        ->where("user_id='$userid'")
	        ->select();
	         if ($result) {
	    		#
	    		$this->ajaxReturn(array(
	                "code"=>200,
	                "message"=>"查询成功！",
	                "data"=>$result
	    			),"JSON");
	    	}else{
	    		$this->ajaxReturn(array(
	                "code"=>500,
	                "message"=>"没有相应新闻！"
	    			),"JSON");
	    	}

	    }

}